package com.nmsl.statistic.mapper;

import java.util.List;
import com.nmsl.statistic.domain.RetailOrder;
import org.apache.ibatis.annotations.Mapper;

/**
 * 零售订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-16
 */
@Mapper
public interface RetailOrderMapper 
{
    /**
     * 查询零售订单
     * 
     * @param retailOrderId 零售订单主键
     * @return 零售订单
     */
    public RetailOrder selectRetailOrderByRetailOrderId(Long retailOrderId);

    /**
     * 查询零售订单列表
     * 
     * @param retailOrder 零售订单
     * @return 零售订单集合
     */
    public List<RetailOrder> selectRetailOrderList(RetailOrder retailOrder);

    /**
     * 新增零售订单
     * 
     * @param retailOrder 零售订单
     * @return 结果
     */
    public int insertRetailOrder(RetailOrder retailOrder);

    /**
     * 修改零售订单
     * 
     * @param retailOrder 零售订单
     * @return 结果
     */
    public int updateRetailOrder(RetailOrder retailOrder);

    /**
     * 删除零售订单
     * 
     * @param retailOrderId 零售订单主键
     * @return 结果
     */
    public int deleteRetailOrderByRetailOrderId(Long retailOrderId);

    /**
     * 批量删除零售订单
     * 
     * @param retailOrderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRetailOrderByRetailOrderIds(Long[] retailOrderIds);
}
